#include "AstroBody.h"

AstroBody::AstroBody () {
		mass = 0;
		velocity = 0;
		Xvelocity = 0;
		Yvelocity = 0;
		Zvelocity = 0;
		color = 0;
		Xlocation = 0;
		Ylocation = 0;
		Zlocation = 0;
		Diameter = 0;
		Radium = 0;	
}//AstroBody::AstroBody

AstroBody::AstroBody(int xLoc, int yLoc, int zLoc, int m, int d){
		mass = m;
		velocity = 0;
		Xvelocity = 0;
		Yvelocity = 0;
		Zvelocity = 0;
		color = 0;
		Xlocation = xLoc;
		Ylocation = yLoc;
		Zlocation = zLoc;
		Diameter = d;
		Radium = d/2;	
}//AstroBody::AstroBody(int xLoc, int yLoc, int zLoc, int m, int d)

void	AstroBody::setMass(float m){
	mass =m;
}//AstroBody::setMass

float	AstroBody::getMass(){
	return mass;
}//AstroBody::getMass

void	AstroBody::setXvel(float v){
	Xvelocity = v;
}//AstroBody::setxvel

void	AstroBody::setYvel(float v){
	Yvelocity = v;
}//AstroBody::setYvel

void	AstroBody::setZvel(float v){
	Zvelocity = v;
}//AstroBody::setZvel

float	AstroBody::getXvel(){
	return Xvelocity;
}//AstroBody::getXvel

float	AstroBody::getYvel(){
	return yvelocity;
}//AstroBody::getYvel

float	AstroBody::getZvel(){
	return zvelocity;
}//AstroBody::getZvel

void	AstroBody::calculateVeloctiy(){ /////////////////////////////////NEEDS COMPLETED
	
}//AstroBody::calculateVeloctiy

float	AstroBody::getVelocity(){
	return velocity;
}//AstroBody::getVelocity()

void	AstroBody::setXforce(float f){
	Xforce = f;
}//AstroBody::setXforce

void	AstroBody::setYforce(float f){
	Yforce = f;
}//AstroBody::setYforce

void	AstroBody::setZforce(float f){
	Zforce = f;
}//AstroBody::setZforce

float	AstroBody::getXforce(){
	return Xforce;
}//AstroBody::getXforce

float	AstroBody::getYforce(){
	return Yforce;
}//AstroBody::getYforce

float	AstroBody::getZforce(){
	return Zforce;
}//AstroBody::getZforce

void	AstroBody::calculateForce(){ /////////////////////////////////NEEDS COMPLETED
	
}

void	AstroBody::addXforce(float f){
	Xforce += f;
}//AstroBody::addXforce

void	AstroBody::addYforce(float f){
	Yforce += f;
}//AstroBody::addYforce

void	AstroBody::addZforce(float f){
	Zforce += f;
}//AstroBody::addZforce

void	AstroBody::clearForces(){
	Xforce = Yforce = Zforce = 0;
}//AstroBody::clearForces

void	addForces(AstroBody b){ /////////////////////////////////NEEDS COMPLETED

}

void	AstroBody::setColor(int c){
	color = c;
}//AstroBody::setColor

int		AstroBody::getColor(){
	return color;
}//AstroBody::getColor

void	AstroBody::setXloc(int l){
	Xlocation = l;
}//AstroBody::setXloc

void	AstroBody::setYloc(int l){
	Ylocation = l;
}//AstroBody::setYloc

void	AstroBody::setZloc(int l){
	Zlocation = l;
}//AstroBody::setZloc

int		AstroBody::getXloc(){
	return Xlocation;
}//AstroBody::getXloc

int		AstroBody::getYloc(){
	return Ylocation;
}//AstroBody::getYloc

int		AstroBody::getZloc(){
	return Zlocation;
}//AstroBody::getZloc

void	AstroBody::setDiameter(int d){
	diameter = d;
	radium = d/2;
}//AstroBody::setDiameter

int		AstroBody::getDiameter(){
	return diameter;
}//AstroBody::getDiameter

void	AstroBody::setRadius(int r){
	radius = r;
	diameter = 2*r;
}//AstroBody::setRadius

int		AstroBody::getRadius(){
	return radius;
}//AstroBody::getRadius
